package com.ylr.blog.framework.controller.web;

import java.util.Map;

import com.ylr.base.common.tool.Result;
import com.ylr.blog.framework.service.AuditBlogFlowService;
import com.ylr.blog.framework.entity.AuditBlogFlowEntity;
import lombok.AllArgsConstructor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import org.springframework.web.bind.annotation.*;


/**
 * Created by IntelliJ IDEA.
 *
 * @author wyw
 * date: 2023-05-19 20:35:33
 * className: AuditBlogFlowWebController
 * version: 1.0
 * description:
 */
@RestController
@RequestMapping("/web/audit-blog-flow")
@AllArgsConstructor
public class AuditBlogFlowWebController {

    private static final Logger log = LoggerFactory.getLogger(AuditBlogFlowWebController.class);

    private AuditBlogFlowService auditBlogFlowService;

    /**
     * 保存
     */
    @PostMapping("/save")
    public Result<Object> saveYbAuditBlogFlow(@RequestBody AuditBlogFlowEntity ybAuditBlogFlow) {
//        auditBlogFlowService.save(ybAuditBlogFlow);

        return Result.success();
    }

    /**
     * 列表
     */
    @GetMapping("/page/list")
    public Result<Object> pageYbAuditBlogFlowList(@RequestParam Map<String, Object> params) {
//        PageUtils page = auditBlogFlowService.queryPage(params);

        return Result.success();
    }


    /**
     * 信息
     */
    @GetMapping("/get")
    public Result<Object> getYbAuditBlogFlow(@RequestParam("id") Long id) {
//		AuditBlogFlowEntity ybAuditBlogFlow = auditBlogFlowService.getById(id);

        return Result.success();
    }

    /**
     * 修改
     */
    @PostMapping("/update")
    public Result<Object> updateYbAuditBlogFlow(@RequestBody AuditBlogFlowEntity ybAuditBlogFlow) {
//		auditBlogFlowService.updateById(ybAuditBlogFlow);

        return Result.success();
    }

    /**
     * 删除
     */
    @DeleteMapping("/delete")
    public Result<Object> deleteYbAuditBlogFlow(@RequestBody Long[] ids) {
//		auditBlogFlowService.removeByIds(Arrays.asList(ids));

        return Result.success();
    }

}
